//
//  FZ_BoFang_One_TableCell_Two_CollectionViewCell.m
//  ProjectOfBStage
//
//  Created by dllo on 15/11/15.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "FZ_BoFang_One_TableCell_Two_CollectionViewCell.h"

@implementation FZ_BoFang_One_TableCell_Two_CollectionViewCell
- (void)dealloc
{
    [_labelName release];
    [_labelPinDao release];
    [_labelTitle release];
    [_imageViewHead release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubView];
    }
    return self;
}

- (void)createSubView{
    self.imageViewHead = [[UIImageView alloc] init];
    self.imageViewHead.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:self.imageViewHead];
    [_imageViewHead release];
    
    self.labelName = [[UILabel alloc] init];
    self.labelName.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:self.labelName];
    [_labelName release];
    
    self.labelPinDao = [[UILabel alloc] init];
    self.labelPinDao.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:self.labelPinDao];
    [_labelPinDao release];
    
    self.labelTitle = [[UILabel alloc] init];
    self.labelTitle.backgroundColor = [UIColor blueColor];
    [self.contentView addSubview:self.labelTitle];
    [_labelTitle release];
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageViewHead.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 171);
    self.labelName.frame = CGRectMake(5, self.imageViewHead.frame.size.height + 3, 161, 21);
    self.labelTitle.frame = CGRectMake(self.labelName.frame.origin.x, self.labelName.frame.origin.y + 3 + self.labelName.frame.size.height, 42, 21);
    self.labelPinDao.frame = CGRectMake(self.labelTitle.frame.origin.x + 60 + self.labelTitle.frame.size.width, self.labelTitle.frame.origin.y, 42, 21);
}

- (void)awakeFromNib {
    
}

@end
